<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<head th:include="common/common :: jscss">
    <title>详情</title>
</head>
<body>

<div class="layui-fluid">
    <blockquote class="layui-crumb">
        后台产品>产品分类>
        <a lay-href="/serv/categ/ass/list.action">分类关联</a>>
        <a th:href="|/serv/categ/ass/disclaimerView.action?groupId=${servAssCategory.groupId}|">免责条款</a>
    </blockquote>
    <div class="layui-card">

        <div th:replace="servasscategory/_tab :: tab"></div>

        <div class="layui-card-body">
            <form method="post" action="" class="layui-form" lay-filter="zmn-form">
                <input type="hidden" name="groupId" th:value="${servAssCategory.groupId}">

                <div style="margin-left: -40px" class="layui-form-item">
                    <label class="layui-form-label">免责条款：</label>
                    <div class="layui-input-block" style="width: 450px">
                        <div class="layui-inline">
                            <textarea style="width: 450px;height: 150px" onkeyup="wordStatic(this, 'disclaimer')"
                                      name="disclaimer" class="layui-textarea" th:text="${servAssCategory.disclaimer}"
                                      maxlength="500"></textarea>
                            <div style="text-align: right">
                                <span id="disclaimer"
                                      th:text="${(servAssCategory.disclaimer == null || servAssCategory.disclaimer == '') ? 0 : #strings.length(servAssCategory.disclaimer)}">0</span>/500
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-split">&nbsp;</div>

                <div class="layui-form-item submit">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">提交</button>
                        <a href="/serv/categ/ass/list.action"
                           class="layui-btn layui-btn-primary" text="取消">取消</a>

                    </div>
                </div>
            </form>
        </div>
    </div>

</div>

<script type="text/javascript" th:inline="javascript">
    function wordStatic(input, id) {
        var content = document.getElementById(id);
        if (content && input) {
            var value = input.value.replace(/\\n|\\r/gi, '');
            content.innerText = value.length;
        }
    }
</script>

<script type="text/javascript" th:inline="javascript">
    layui.config({
        version: 20200518,
        base: "/static/lay/"
    }).extend({
        index: "lib/index",
        plat_servAssCategory_disclaimer: "servcategory/zmn.plat.serv.ass.categ.disclaimer.edit",
    }).use(['index', 'plat_servAssCategory_disclaimer']);
</script>
</body>
</html>